home *** CD-ROM | disk | FTP | other *** search
/ My Neighborhood / My Neighborhood.iso / mac / MacFiles / Intro2.Dxr / 00104.ls < prev    next >
Encoding:
Text File  |  1997-11-18  |  1.7 KB  |  60 lines

  1. on exitFrame
  2.   global counter, morphsprite, tix, posneg, temploop
  3.   set temploop to 0
  4.   if tix < 8 then
  5.     set tix to tix + 1
  6.   else
  7.     if (the name of cast counter = "PGA.BMP") or (the name of cast counter = "PGB.BMP") or (the name of cast counter = "PGC.BMP") then
  8.       set tix to 0
  9.       set temp to random(3)
  10.       if temp = 1 then
  11.         if random(20) < 11 then
  12.           set posneg to -1
  13.         else
  14.           set posneg to 1
  15.         end if
  16.         if random(20) > 10 then
  17.           set morphsprite to 6
  18.         else
  19.           set morphsprite to 5
  20.         end if
  21.         if the name of cast the castNum of sprite morphsprite = "PGA.BMP" then
  22.           set counter to 1
  23.           set the castNum of sprite morphsprite to counter
  24.         else
  25.           if the name of cast the castNum of sprite morphsprite = "PGB.BMP" then
  26.             set counter to 24
  27.             set the castNum of sprite morphsprite to counter
  28.           else
  29.             if the name of cast the castNum of sprite morphsprite = "PGC.BMP" then
  30.               set counter to 49
  31.               set the castNum of sprite morphsprite to counter
  32.             end if
  33.           end if
  34.         end if
  35.         set tix to 41
  36.         set counter to counter + posneg
  37.         if counter > 73 then
  38.           set counter to 1
  39.         else
  40.           if counter = 0 then
  41.             set counter to 73
  42.           end if
  43.         end if
  44.         set the castNum of sprite morphsprite to counter
  45.       end if
  46.     else
  47.       set counter to counter + posneg
  48.       if counter > 73 then
  49.         set counter to 1
  50.       else
  51.         if counter = 0 then
  52.           set counter to 73
  53.         end if
  54.       end if
  55.       set the castNum of sprite morphsprite to counter
  56.     end if
  57.   end if
  58.   go(the frame)
  59. end
  60.